package com.kgis.map.events {
   import com.kgis.map.tile.Tile;

   import flash.events.Event;
   import com.kgis.map.events.EventBase;

   /**
    * 瓦片事件
    */
   public class TileEvent extends EventBase {
      private var _tile:Tile = null;

      /**开始加载瓦片*/
      public static const TILE_LOAD_START:String = "pkmap.tileloadstart";
      /**结束加载瓦片*/
      public static const TILE_LOAD_END:String = "pkmap.tileloadend";

      public function TileEvent(type:String, tile:Tile, bubbles:Boolean = false, cancelable:Boolean = false) {
         _tile = tile;
         super(type, bubbles, cancelable);
      }

      override public function clone():Event {
         return this;
      }

      public function get tile():Tile {
         return this._tile;
      }
   }
}